//package com.imc.platform.base.common.dao.repository;
//
//import com.imc.platform.base.common.pojo.IdentifyCode;
//import org.springframework.data.jpa.repository.JpaRepository;
//import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
//import org.springframework.stereotype.Repository;
//
//import java.util.Date;
//
///**
// * Created by tanweiping on 2018/8/1.
// */
//@Repository
//public interface IdentifyCodeRepository extends JpaRepository<IdentifyCode, String>, JpaSpecificationExecutor<IdentifyCode> {
//
//    IdentifyCode findFirstByUserNameAndInvalidTimeLessThanEqualAndValidAndTypeOrderByEffectTimeDesc(
//            String username,
//            Date currentTime,
//            String valid,
//            String type
//    );
//}
